package com.example.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 用户 -- 通道组，关联表
 */

@Entity
@Table(name = "admin_of_channel_group")
public class AdminOfChannelGroup implements Serializable {

    @Id
    @Column(name = "pkid")
    private Integer pkId;

    @Column(name = "channel_group_id")
    private Integer channelGroupId; //通道组Id

    @Column(name = "admin_id")
    private Integer adminId; //用户id，如果通道组关联到用户则有，不关联则无

    public Integer getPkId() {
        return pkId;
    }

    public void setPkId(Integer pkId) {
        this.pkId = pkId;
    }

    public Integer getChannelGroupId() {
        return channelGroupId;
    }

    public void setChannelGroupId(Integer channelGroupId) {
        this.channelGroupId = channelGroupId;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }
}
